﻿using Mes.Domain.BoundedContext;
using Mes.Application.DTO.Inputs.WorkOrders;
using Mes.Application.DTO.Results.WorkOrders;

namespace Mes.Application.Services.WorkOrders
{
    public interface IJobStateService
    {
        /// <summary>
        /// 更新作业状态
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task UpdateJobStateAsync(UpdateJobStateInput input);

        /// <summary>
        /// 查询作业状态
        /// </summary>
        /// <returns>ItemsResult<JobStatesResult></returns>
        Task<ItemsResult<JobStatesResult>> GetAllJobStateAsync();
    }
}
